package com.mall.alipay.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author White
 * @version 1.0
 * @email 616769721@qq.com
 * @date 2021/8/1 17:34
 */
@FeignClient("groupBooking")
public interface BookingFeign {

    /**
     * 将记录加入数据库
     * @param recordId 记录id
     */
    @PostMapping("/bookingRecord/recordToMysql")
    void recordToMysql(@RequestParam("recordId")Long recordId);

    /**
     * 修改团状态
     * @param id
     * @param status
     */
    @GetMapping("/bookingRoot/updateStatusById")
    void updateStatusById(
            @RequestParam("id")Integer id,
            @RequestParam("status")String status);
}
